<?php
/**
 * Created by PhpStorm.
 * User: Alexander
 * Date: 30.7.14
 * Time: 13.30
 */

include_once("../functions/db_functions.php");

db_for_IShop_connect();

mysql_select_db("test1", $linkId) or die(mysql_error());

$resultSet = mysql_query("INSERT INTO users (name, addres, password, email)
VALUES('" . $_POST['username'] . "', '" . $_POST['addres'] . "','" . $_POST['password'] . "','" . $_POST['email'] . "')") or die(mysql_error());

db_for_IShop_close($linkId);

http_redirect("localhost/IShop.com/main_pg.php");
